/*
 * Copyright (c) 2013-2014, thinkjoy Inc. All Rights Reserved.
 *
 * Project Name: wy
 * $Id:  ArticleVisit.java 2016-01-25 16:32:44 $
 */



package com.wy.domain;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import com.wy.common.domain.BaseDomain;

import java.util.*;

public class ArticleVisit extends BaseDomain{
    private Long articleId;
    private Long number;

	public ArticleVisit(){
	}
    public void setArticleId(Long value) {
        this.articleId = value;
    }

    public Long getArticleId() {
        return this.articleId;
    }
    public void setNumber(Long value) {
        this.number = value;
    }

    public Long getNumber() {
        return this.number;
    }

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("ArticleId",getArticleId())
			.append("Number",getNumber())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof ArticleVisit == false) return false;
		if(this == obj) return true;
		ArticleVisit other = (ArticleVisit)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

